﻿
namespace TfsRollUp.Core
{
    internal static class Constants
    {
        /// <summary>
        /// The Field ReferenceName must start with this text to be considered a rollup field
        /// </summary>
        internal const string FieldNameTfsRollUpPrefix = "Alm.RollUp.";

        /// <summary>
        /// The help text for the field must contain this text to enable the rollup for this field
        /// </summary>
        internal const string EnabledText = "(Enabled)";

        /// <summary>
        /// This is my name
        /// </summary>
        internal const string TfsRollUpPlugin = "Alm.TfsRollUpPlugin";

        internal const string DefaultPipeName = "TfsRollUpPipe";
        internal const string URI = "net.pipe://localhost/Alm.TfsRollUpPlugin";

        /// <summary>
        /// Duration for workitems updates block
        /// </summary>
        internal const int WorkItemTimeToLiveMilliSeconds = 1000;

        internal enum EventIds
        {
            /// <summary>
            /// Start service
            /// </summary>
            ServiceStart = 1000,

            /// <summary>
            /// Workitemstore created
            /// </summary>
            StoreCreated,
            ServiceFlushCache,
            WorkItemRead,
            StoreNotCreated
        }
    }
}
